    
<div style="min-height: 282px">
    <ul class="list">
        <?php if(count($outboxes)): ?>
        <?php foreach($outboxes as $outbox):?>
        <li>
            <div class="list_main_container <? if(isset($message_id) AND $message_id == $outbox->id) echo 'active';  ?>">
                <img src="<?php echo $outbox->photo;?>" alt="imie_nazwisko"/>
                <div class="list_user_link"><a href="/desktop/<?php echo $outbox->url ?>" class="desktop_link" title="<?php echo __('show desktop') ?>"></a><a href="/profile/<?php echo $outbox->url ?>" class="profile_link" title="<?php echo __('show profile') ?>"></a></div>
                <div class="list_standard_entre" style="width:50px"><?php echo __('You to') ?>:</div>
                <a href="/message/outbox/<?php echo $outbox->id ?>" class="message_link">
                <div class="message_row">
                        <p class="mini_name ellipsis_character">
                           <?php echo $outbox->name.' '.$outbox->surname ?>
                        
                            <?php if ($outbox->user_amout > 1): ?>
                                 <span>
                                 <?php echo __(' and :all_users more',array(':all_users' => $outbox->user_amout-1)); ?>
                                 </span>
                            <?php endif ?>
                       
                    </p>
                    
                    <p class="mini_info ellipsis_word"><span><?php echo $outbox->subject ?></span> - <?php echo $outbox->content_message ?></p>
                </div>
                </a>
          
                <div class="list_standard_entre" style="width: 85px;text-align:center; font-size:10px"><?php echo Date::nice_span(strtotime($outbox->date_created)) ?></div>
                <div class="list_standard_entre"><a href="/message/delete_outbox_message/<?php echo $outbox->id ?>" class="tooltip delete" title="<?php echo __('move to bin') ?>" rel="<?php echo __('move to bin|Are you realy want move this message to bin ?|Move to bin|Cancel') ?>"></a></div>
            </div>
            <div class="message" <?php if(!(isset($message_id) AND $message_id == $outbox->id)) echo 'style="display:none"'?>>
                <h1><?php echo $outbox->subject ?></h1>
                <?php echo Text::auto_p($outbox->content_message) ?>
            </div>
	</li>
        <?php endforeach ?>
	 <?php else: ?>
            <li>
                <div class="list_main_container">
                    <div class="list_standard_entre" style="text-align: center; float: none"><?php echo __('no messages in outbox to show')?></div>                   
                </div>
            </li>
        <?php endif ?>       
    </ul>
  
</div>
